package dummy.test.boundry;

import org.annoflow.policy.Policy;
import org.annoflow.policy.boundry.InsecureClassPolicy;

@Policy(policy=InsecureClassPolicy.class)
public class ClientApp {
	User newUser;
	public void createUser()
	{
		 newUser = new User("Mike","foo");
	}
	public String getPassword()
	{
		newUser = new User("Mike","foo");
		return newUser.getPassword();
	}
	public void checkOnUser()
	{
		newUser = UserRegistry.getUser("Mike");
		newUser.getPassword();
	}
	public void requestAuthenticate()
	{
		newUser = UserRegistry.authentcateUser("Mike","foo");
		assert(newUser != null);
	}
	public void resetSecurity()
	{
		newUser = UserRegistry.getUser("Mike");
		newUser.setPassword("*****");
		newUser.getPassword();
	}
	public void preserveSecurity()
	{
		newUser = UserRegistry.getUser("Mike");
		UserRegistry.requestPasswordChange(newUser, "foo", "bar");
		newUser.getPassword();
	}
}
